package com.acdc.alarm.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 短信发送记录对象 sms_message
 * 
 * @author acdc
 * @date 2025-05-21
 */
public class SmsMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 短信类型 */
    @Excel(name = "短信类型")
    private String type;

    /** 接收者 */
    @Excel(name = "接收者")
    private Long receiverId;

    /** 短信模板代码 */
    @Excel(name = "短信模板代码")
    private String templateCode;

    /** 发送内容 */
    @Excel(name = "发送内容")
    private String content;

    /** 发送状态 */
    @Excel(name = "发送状态")
    private String status;

    /** 发送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发送时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sendTime;

    /** 错误信息 */
    @Excel(name = "错误信息")
    private String errorMessage;

    /** 发送次数 */
    @Excel(name = "发送次数")
    private Long sendCount;

    @Excel(name = "接收者姓名")
    private String receiverName;

    /** 发送时间范围 */
    private String beginSendTime;

    /** 发送时间范围 */
    private String endSendTime;

    /** 创建时间范围 */
    private String beginCreateTime;

    /** 创建时间范围 */
    private String endCreateTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    public void setReceiverId(Long receiverId) 
    {
        this.receiverId = receiverId;
    }

    public Long getReceiverId() 
    {
        return receiverId;
    }

    public void setTemplateCode(String templateCode) 
    {
        this.templateCode = templateCode;
    }

    public String getTemplateCode() 
    {
        return templateCode;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setSendTime(Date sendTime) 
    {
        this.sendTime = sendTime;
    }

    public Date getSendTime() 
    {
        return sendTime;
    }

    public void setErrorMessage(String errorMessage) 
    {
        this.errorMessage = errorMessage;
    }

    public String getErrorMessage() 
    {
        return errorMessage;
    }

    public void setSendCount(Long sendCount) 
    {
        this.sendCount = sendCount;
    }

    public Long getSendCount() 
    {
        return sendCount;
    }

    public void setReceiverName(String receiverName) {
        this.receiverName = receiverName;
    }

    public String getReceiverName() {
        return this.receiverName;
    }

    public String getBeginSendTime() {
        return beginSendTime;
    }

    public void setBeginSendTime(String beginSendTime) {
        this.beginSendTime = beginSendTime;
    }

    public String getEndSendTime() {
        return endSendTime;
    }

    public void setEndSendTime(String endSendTime) {
        this.endSendTime = endSendTime;
    }

    public String getBeginCreateTime() {
        return beginCreateTime;
    }

    public void setBeginCreateTime(String beginCreateTime) {
        this.beginCreateTime = beginCreateTime;
    }

    public String getEndCreateTime() {
        return endCreateTime;
    }

    public void setEndCreateTime(String endCreateTime) {
        this.endCreateTime = endCreateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createTime", getCreateTime())
            .append("type", getType())
            .append("receiverId", getReceiverId())
            .append("templateCode", getTemplateCode())
            .append("content", getContent())
            .append("status", getStatus())
            .append("sendTime", getSendTime())
            .append("errorMessage", getErrorMessage())
            .append("sendCount", getSendCount())
            .toString();
    }
}
